package com.cyandpos.pad.netdata;


import com.cyandpos.pad.posdata.Payment;

import java.util.ArrayList;
import java.util.List;

public class P_Addpay {
    private String storeCode;//分店号
    private String sktno;//收款台号
    private String ddly;//订单来源 “0”：大pos “1”：安卓pos
    private String ddlx;//订单类型 “0”：销售 “1”：退货
    private String orderNo;//订单号
    private List<Payment> payList;//付款信息列表
    public P_Addpay(){
        payList = new ArrayList<>();
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getSktno() {
        return sktno;
    }

    public void setSktno(String sktno) {
        this.sktno = sktno;
    }

    public String getDdly() {
        return ddly;
    }

    public void setDdly(String ddly) {
        this.ddly = ddly;
    }

    public String getDdlx() {
        return ddlx;
    }

    public void setDdlx(String ddlx) {
        this.ddlx = ddlx;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public List<Payment> getPayList() {
        return payList;
    }

    public void setPayLists(List<Payment> payItems) {
        this.payList = payItems;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"storeCode\":\"")
                .append(storeCode).append('\"');
        sb.append(",\"sktno\":\"")
                .append(sktno).append('\"');
        sb.append(",\"ddly\":\"")
                .append(ddly).append('\"');
        sb.append(",\"ddlx\":\"")
                .append(ddlx).append('\"');
        sb.append(",\"orderNo\":\"")
                .append(orderNo).append('\"');
        sb.append(",\"payList\":")
                .append(payList);
        sb.append('}');
        return sb.toString();
    }
}
